import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/404",
    component: () => import("@/views/404"),
    hidden: true,
  },
  {
    path: "/",
    redirect: {
      path: "/pageDesign",
    },
    hidden: true,
  },
  {
    path: "/pageDesign",
    name: "PageDesign",
    meta: {
      title: "页面设计",
    },
    component: () => import("@/views/pageDesign/index"),
  },
  {
    path: "/formDesign",
    name: "FormDesign",
    meta: {
      title: "表单设计",
    },
    component: () => import("@/views/formDesign/index"),
  },
  {
    path: "/largeScreenDesign",
    name: "LargeScreenDesign",
    meta: {
      title: "大屏设计",
    },
    component: () => import("@/views/largeScreenDesign/index"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
